package ar.edu.caece.compiler.grammar.attributes.tree;

public class ConstantNodesFactory {
	private int varCadenaId = 0;
	private int varConstanteId = 0;
	
	public NodeCadena newNodeCadena(String string) {
		return new NodeCadena(string,Integer.toString(++varCadenaId));
	}
	
	public NodeConstante newNodeConstante(String valor) {
		return new NodeConstante(valor,Integer.toString(++varConstanteId));
	}
	
}
